package com.xr.org;

import com.bstek.dorado.common.*;
import com.bstek.dorado.data.*;
import com.bstek.dorado.data.db.DBStatement;
import com.bstek.dorado.view.*;
import com.bstek.dorado.view.data.*;
import com.bstek.dorado.view.control.*;

/**
 * orgBackupListViewModel
 */
public class orgBackupListViewModel extends DefaultViewModel {
  protected void doUpdateData(ParameterSet parameters, ParameterSet outParameters)
      throws Exception {
 
		
 super.doUpdateData(parameters, outParameters);
  }
  public void dr(ParameterSet parameters, ParameterSet outParameters)
  throws Exception {
	Dataset ds = getDataset("datasetOrgBackup");
	DBStatement dbs = new DBStatement();
	dbs.setSql("update org_backup set dr=1,dr_date=sysdate,dr_id="+com.xr.common.CommUtil.getUserId() +" where org_backup_id="+ds.getString("ORG_BACKUP_ID"));
	dbs.execute();
	dbs.close();
	 
}
}
